<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Mine\MineModel;

/**
 * @property int $id 主键
 * @property string $name 标签名称
 * @property int $group_id 分组ID
 * @property int $parent_id 上级ID
 * @property int $sort 排序
 * @property int $sub_type 子类型：0=社群行为 1=客户行为
 * @property int $duration 间隔
 * @property int $unit 单位: 0=天 1=小时 2=分站 3=秒钟
 * @property int $created_by 创建者
 * @property int $updated_by 更新者
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 * @property string $remark 备注
 */
class ChTagPreset extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ch_tag_preset';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'name', 'group_id', 'parent_id', 'sort', 'sub_type', 'duration', 'unit', 'created_by', 'updated_by', 'created_at', 'updated_at', 'remark'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'group_id' => 'integer', 'parent_id' => 'integer', 'sort' => 'integer', 'sub_type' => 'integer', 'duration' => 'integer', 'unit' => 'integer', 'created_by' => 'integer', 'updated_by' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
